<?
    include('../config.php');
    session_start();
    if(!isset($_SESSION['username'])){
        header('Location:login.php');
    }
    $cat_id = base64_decode($_GET['cat_id']);
    $db_execute = new db_execute("DELETE FROM category WHERE cat_id=".$cat_id);
    redirect('listing.php');
?>